<%@ page language="java" isErrorPage="true" import="com.b2c.ftysys.helper.*" contentType="text/html; charset=UTF-8"%>
<%@ include file="../common/common.jsp"%>
<%!private final static transient org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory
			.getLog("reportError_jsp");%>
<%
	//TODO, a bug report form, and attach the stack trace in a hidden field with the bug report, and remove these code
	String errorUrl = RequestUtil.getErrorUrl(request);
	//acegi will throw NullPointerException when user click logout but session is already timeout.
	if (errorUrl.indexOf("j_acegi_logout") != -1) {
		response.sendRedirect(request.getContextPath());
	}
	logger.error(RequestUtil.getErrorInfoFromRequest(request, logger.isInfoEnabled()));
%>
<title>
</title>
<div class="main">
	<div class="error_notice">
		<div class="e_500">
			<h3><fmt:message key="errorPage.message"></fmt:message></h3>
			<div class="error_info"></div>
			<div class="recommend_info">
				<dl>
					<dd>您可以选择<a href="#" onclick="history.go(-1);return false">返回上个页面</a>或<a href="<c:url value="/"/>">返回主面板</a>。</dd>
					<dd>若想报告错误，请点击<a title="向系统管理员报告错误" href="mailto:${appConfig.bugReportEmail}">发送邮件</a>，以便尽快解决该问题。</dd>
				</dl>
			</div>
		</div>
	</div>
</div>